/**
 * @author caesar
 * @date 2025/7/2
 * @apiNote
 */
//跨类调用练习题
public class MyArrays {
    public static int getsum(int[] arr) {
        int sum = 0;
        for (int i = 0; i < arr.length; i++) {
            sum += arr[i];
        }
        return sum;
    }
}


